﻿using System;
using System.Collections;
using System.Linq;
using System.Text;
using System.Reflection;
using System.ComponentModel.Design;
using System.Resources;

namespace Common
{
    public static class Functions
    {
        public static string GlossaryKey(string key, LANGUAGE language = LANGUAGE.VIETNAMESE)
        {
            var resourceSet = Resource.GlossaryFL.ResourceManager.GetResourceSet(System.Globalization.CultureInfo.CurrentCulture, false, false);
            
            if (language == LANGUAGE.ENGLISH)
                return Resource.GlossaryFL.ResourceManager.GetString(key);
            else
                return Resource.Glossary.ResourceManager.GetString(key);
        }
    }
}
